<?php
include 'connect.php';
include 'class.php';
$QID=$_POST['questionid'];
if($QID)
{
$delete_question=new question;
$delete_question->questionid=$QID;
$delete_question->delete($delete_question->questionid);
}

session_start();
$coursenum=$_POST['course_ID'];
$sid=$_SESSION['student_ID'];
$question= new question;
$question->course_ID=$coursenum;
$question->viewquestion($question->course_ID) ;

?>
<form action="delete.php" method="POST" >
<input type="text" name="questionid" class="txtbox" /></br></br>
<input type="hidden" name="course_ID" value=<?php echo " $question->course_ID ;" ?> />
<input type="hidden" name="ID" value=<?php echo " $sid ";   ?> />
<input type="submit" value="Delete Question" class="btn1"/>
</form>

<?php
echo "<br>";
?>
<form action ="ASk.php" method ="post"  >
<b><input type="text" name="ASK" class="txtbox"> </br></br>
<input type="hidden" name="course_ID" value=<?php echo " $question->course_ID ;" ?> />
<input type="hidden" name="ID" value=<?php echo " $sid ";   ?> />
<input type="submit" value="ASk" class="btn1">
</form>